package com.base.commonlib.base;

import android.view.View;

import com.base.commonlib.base.presenter.PresenterI;
import com.base.commonlib.base.view.ViewI;


/**
 * Date：2019/4/9 下午3:38
 * Creator：arvin
 * Des：
 */

public abstract class BaseViewActivity<H extends PresenterI> extends BaseActivity implements ViewI {

    protected H mPresenter;

    @Override
    public void showMes(String msg) {
        showMesB(msg);
    }

    @Override
    public void showMes_action(String msg, String action, View.OnClickListener listener) {
        showMesWActionB(msg,action,listener);
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        if(mPresenter!=null)
        {
            mPresenter.release();
        }

    }

    @Override
    public void onLogin() {
        startLogin();
    }
}
